package com.systemic.service;

import com.systemic.pojo.UserInfo;
import com.systemic.vo.PageVo;
import com.systemic.vo.UserItem;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @ClassName: UserInfoService
 * @Description:
 * @Author:
 * @CreateTime: 2023-12-27 14:37
 * @Version:
 **/
public interface UserInfoService {


    void addUserInfo(UserInfo userInfoEntity);

    /**
     * 修改用户信息
     * @param userInfo
     */
    void updateUserInfo(UserInfo userInfo);

    /**
     * 获取用户信息
     * @param uid
     * @return
     */
    UserInfo selectUserInfoByUid(Integer uid);

    /**
     * 上传头像
     * @param file
     * @param uid
     */
    void uploadAvatar(MultipartFile file, Integer uid);

    /**
     * 上传壁纸
     * @param file
     * @param uid
     */
    void uploadBackground(MultipartFile file, Integer uid);


    /**
     * 获取用户列表
     * @param userInfo
     * @return
     */
    List<UserInfo> select(UserInfo userInfo);

    /**
     * 分页查询
     * @param pageVo
     * @return
     */
    List<UserInfo> selectListPage(PageVo pageVo);

    /**
     * 查询用户item
     * @param uid
     * @return
     */
    UserItem selectUserItem(Integer uid);
}
